package com.yodawnla.easyPuyo.scene;

import android.view.KeyEvent;

import com.yodawnla.easyPuyo.character.Player;
import com.yodawnla.lib.YoScene;
import com.yodawnla.lib.util.widget.YoButton;

public class TitleScene extends YoScene
{
	Player mPlayer = Player.getInstance() ;

	YoButton mShopBtn;
	YoButton mGameBtn;
	YoButton mCharacterBtn;
	YoButton mStageBtn;

	@Override
	public void loadScene()
	{

//		mCharacterBtn= new YoButton(this, 0, 0, getTexture(Tex.Button))
//		{
//			@Override
//			public void onPressedEvent()
//			{
//				playSound(SE.Click);  
//				toScene(YS.CharacterScene);
//			}
//		};
//		this.attachChild(mCharacterBtn);
//		mGameBtn= new YoButton(this, 0, 0, getTexture(Tex.Button))
//		{
//			@Override
//			public void onPressedEvent()
//			{
//				playSound(SE.Click); 
//				toScene(YS.GameScene);
//			}
//		};
//		this.attachChild(mGameBtn);
//		mStageBtn= new YoButton(this, 0, 0, getTexture(Tex.Button))
//		{
//			@Override
//			public void onPressedEvent()
//			{
//				playSound(SE.Click); 
//				toScene(YS.StageScene);
//			}
//		};
//		this.attachChild(mStageBtn);
//		mShopBtn= new YoButton(this, 0, 0, getTexture(Tex.Button))
//		{
//			@Override
//			public void onPressedEvent()
//			{
//				playSound(SE.Click); 
//				toScene(YS.ShopScene);
//			}
//		};
//		this.attachChild(mShopBtn);

	}

	@Override
	public void onEnterScene()
	{
	}

	@Override
	public void onExitScene()
	{

	}


	@Override
	public boolean onKeyDown(final int pKeyCode, final KeyEvent pEvent)
	{
		switch (pKeyCode)
		{
		case KeyEvent.KEYCODE_BACK:
			if (pEvent.getAction() == KeyEvent.ACTION_DOWN)
			{

				return false;
			}
			break;
		case KeyEvent.KEYCODE_MENU:
			if (pEvent.getAction() == KeyEvent.ACTION_DOWN)
			{
				
				return true;
			}
			break;
		}
		return false;
	}
}
